package com.wasion.pwportable.protocol.analyzer.indicator;

import com.wasion.pwportable.protocol.analyzer.AbstractAnalyzer;

/**
 * 
 * @ClassName: Capactiy_RD_Analyzer
 * @Description: 31. 法拉电容电量
 * @author 高意
 * @date 2014-9-10 下午5:08:19
 * 
 */
public class Capactiy_RD_Analyzer extends AbstractAnalyzer {

	@Override
	public void dataAnalysis(String ackBS) {

		String data = ackBS.substring(DATABITSTART, DATABITSTART + 4);
		String cap16 = data.substring(2, 4) + data.substring(0, 2);
		result.setCapacity(Integer.parseInt(cap16, 16));
	}
}
